package fangzhiyi.object;

public class ObjectPractice {
    public static void main(String[] args) {
        Phone phone = new Phone();
        String brand =  phone.brand;
        double price = phone.price;
        String color = phone.color;

        phone.call();
        phone.message();

        Calculator calculator = new Calculator();

       calculator.brand ="齐心";
        calculator.size = "400*600";

       double newSum = calculator.add(4.8,6.4);
        System.out.println("newSum = " + newSum);
       double newSub = calculator.sub(8.6,4.5);
        System.out.println("newSub = " + newSub);
        calculator.show();
    }
}

